﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
                    xmlns:conv="clr-namespace:USElections.Converters;assembly=USElections.Converters"
                    xmlns:command="clr-namespace:USElections.Command">

    <conv:RssTextTrimmer x:Key="RssTextTrimmer" />

    <DataTemplate x:Key="feedItemTemplate">
        <StackPanel VerticalAlignment="Top">
            <TextBlock Style="{StaticResource PhoneTextAccentStyle}"
                       TextWrapping="Wrap"
                       HorizontalAlignment="Left"
                       Text="{Binding Title.Text, Converter={StaticResource RssTextTrimmer}, ConverterParameter=0}" />
            <TextBlock TextWrapping="Wrap"
                       Style="{StaticResource PhoneTextBlockBase}"
                       Text="{Binding Summary.Text, Converter={StaticResource RssTextTrimmer}, ConverterParameter=200}" />
            <TextBlock Style="{StaticResource PhoneTextSubtleStyle}"
                       Margin="12,0,0,10"
                       Text="{Binding PublishDate.DateTime}" />
        </StackPanel>
    </DataTemplate>
</ResourceDictionary>
